javascript date first day of current month

106

javascript date first day of current month -

var date = new Date();
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);

Comments

Submit
0 Comments